home *** CD-ROM | disk | FTP | other *** search
- Path: rohan.sdsu.edu.sdsu.edu!changc
- From: changc@rohan.sdsu.edu (Associate)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: [Q] How to convert a crontab line into a system time?
- Date: 4 Apr 1996 01:45:23 GMT
- Organization: San Diego State University
- Message-ID: <4jv9jj$o8c@gondor.sdsu.edu>
- NNTP-Posting-Host: 130.191.143.100
-
-
- Hi,
-
- Please help. Does anyone know the algorithm to convert a
- line in crontab file and convert it into a system time? For
- example, if the line in the crontab file is: (April 4, 1996 at 12,13,14-20:00)
-
- 0 12,13,14-20 4 4 * sleep 10
-
- how do I convert the above line into a future system time so the I can
- substract the system time from the current system time. The
- difference is how many second that I should go to sleep before
- waiting up and fork the sleep command.
-
- Any help/code/sample/function is greatly appreciated.
-
- Thanks in advance.
- --Clarisse
-